package com.gather.spring.retry.aop;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.aop.AopInvocationException;

/**
 * @author kxd
 * @date 2018/12/5 10:44
 * description:
 */
public class RetryAbleTest {
    private static final Logger log = LoggerFactory.getLogger(RetryAbleTest.class);

    @Retryable(maxAttempts = 5, value = AopInvocationException.class)
    public void fiveTimes() {
        log.info(" fivetimes called");
        throw new AopInvocationException("");
    }
}
